package date_demo;
import java.time.ZoneId;
import java.time.ZonedDateTime;
/**
 * @author ChenYongHao
 * @date 2023/5/4 10:29
 * @desc带时区的日期或时间 描述：ZonedDate、ZonedTime、ZonedDateTime
 */



public class ZonedDate_Demo {
    public static void main(String[] args) {
        ZonedDateTime zdt = ZonedDateTime.now(ZoneId.of("Asia/Shanghai"));
        System.out.println(zdt);

        System.out.println("OffsetDateTimeUtils.getDateNow() = " + OffsetDateTimeUtils.getDateNow());
        System.out.println("OffsetDateTimeUtils.getDateTimeNow() = " + OffsetDateTimeUtils.getDateTimeNow());
    }
}
